varying vec3 normal;

void main(){

  float red;
  float green;
  float blue;

  red = dot(vec3(1.0, 0.0, 0.0), normalize(normal));
  green = dot(vec3(0.0, 1.0, 0.0), normalize(normal));       
  blue= dot(vec3(0.0, 0.0, 1.0), normalize(normal));
  
  gl_FragColor = vec4(red, green, blue, 1.0);
}